<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="index.xhtml">
	<ui:define name="conteudo">
		<f:view>

			<h:form id="form">

		<p:growl id="msgs" />

		<p:panel header="Receber Produto">
			<h:panelGrid columns="2" id="grid">

				<h:outputLabel value="Produto: *" for="txt_Produto"></h:outputLabel>
				<h:selectOneMenu id="txt_Produto" value="#{SaldoLojaBean.idProduto}" required="true">
					<f:selectItem itemValue="" itemLabel="Selecione" />
					<f:selectItems value="#{ProdutoBean.listaDeProduto}" />
				</h:selectOneMenu>


				<h:outputLabel value="Loja: *" for="txt_Loja"></h:outputLabel>
				<h:selectOneMenu id="txt_loja" value="#{SaldoLojaBean.idLoja}" required="true">
					<f:selectItem itemValue="" itemLabel="Selecione" />
					<f:selectItems value="#{LojaBean.listarTodas}" />
				</h:selectOneMenu>

				<h:outputLabel value="Quantidade: *" for="txt_quantidade" />
				<p:spinner id="txt_quantidade"	value="#{SaldoLojaBean.quantidade}"/>


				<p:commandButton value="Limpar" type="reset" />

				<p:commandButton id="btn_incluir" value="Incluir" ajax="false"
					update="msgs @parent" action="#{SaldoLojaBean.incluirSaldo}">

				</p:commandButton>

			</h:panelGrid>
		</p:panel>
	</h:form>
</f:view>
	</ui:define>
</ui:composition>
</html>